<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	String channel = "gonggao";
	
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>Smooth Admin</title>
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
	<%@ include file="/WEB-INF/view/include/_js.jspf"%>
	<script type="text/javascript">
		$(document).ready(function () {
			style_path = "<%=path %>/resources/css/colors";
			$("#date-picker").datepicker();
			$("#box-tabs, #box-left-tabs").tabs();
		});
		function topage(page){
			window.location.href="<%=request.getContextPath()%>/login/ab.html?currentPage="+page; 
		}
	</script>
</head>
<body>
<div id="colors-switcher" class="color">
	<a href="" class="blue" title="Blue"></a>
	<a href="" class="green" title="Green"></a>
	<a href="" class="brown" title="Brown"></a>
	<a href="" class="purple" title="Purple"></a>
	<a href="" class="red" title="Red"></a>
	<a href="" class="greyblue" title="GreyBlue"></a>
</div>
<!-- end dialogs -->
<%@ include file="/WEB-INF/view/include/header.jspf"%>
<!-- content -->
<div id="content">
	<!-- end content / left -->
	<%@ include file="/WEB-INF/view/include/left.jspf" %>
	<!-- end content / left -->
	<!-- content / right -->
	<div id="right">
		<div class="box">
					<!-- box / title -->
					<div class="title">
						<h5>公告列表</h5>
						<div class="search">
							<form action="#" method="post">
								<div class="input">
									<input type="text" id="search" name="search" />
								</div>
								<div class="button">
									<input type="submit" name="submit" value="查询" />
								</div>
							</form>
						</div>
					</div>
					<!-- end box / title -->
					<div class="table">
						<table>
							<thead>
								<tr>
									<th>姓名</th>
									<th>性别</th>
									<th>年龄</th>
									<th>所在系</th>
									<th>专业</th>
									<th>年级</th>
									<th>状态</th>
									<th>操作</th>
								</tr>
							</thead>
							<tbody>
							<c:forEach items="${pageView.records}" var="c">
								<tr>
									<td class="title">${c.name }</td>
									<td class="price">男</td>
									<td class="price">${c.id }</td>
									<td class="price">${c.password }</td>
									<td class="date">${c.address }</td>
									<td class="price">大四</td>
									<td class="price">在校</td>
									<td class="date"><a href="#">详细操作</a></td>
								</tr>
							</c:forEach>
							</tbody>
						</table>
						<!-- pagination -->
						<div class="pagination pagination-left">
							<div class="results">
							</div>
							<ul class="pager">
								<li><a href="javascript:topage('1')">&laquo; first</a></li>
								<c:forEach begin="${pageView.pageindex.startindex}"
									end="${pageView.pageindex.endindex}" var="wp">
									<c:if test="${pageView.currentpage==wp}">
										<li><a href="javascript:void();">${wp}</a></li>
									</c:if>
									<c:if test="${pageView.currentpage!=wp}">
										<li><a href="javascript:topage('${wp}')">${wp}</a></li>
									</c:if>
								</c:forEach>
								<li><a href="javascript:topage('${pageView.totalpage}')">end &raquo;</a></li>
							</ul>
						</div>
					</div>
				</div>
	</div>
	<!-- end content / right -->
</div>
<!-- end content -->
<!-- footer -->
<%@ include file="/WEB-INF/view/include/footer.jspf"%>
<!-- end footert -->
</body>
</html>